package com.jokesoft.supermanager.common.fetch;

import java.util.List;

import com.jokesoft.supermanager.common.ReturnCode;
import com.jokesoft.supermanager.common.dto.PersonDto;

public class InternalFetchResponseImpl implements InternalFetchResponse {

    private List<PersonDto> personList;
    private ReturnCode returnCode;
    private String errorMessage;

    public ReturnCode getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(ReturnCode returnCode) {
        this.returnCode = returnCode;
    }

    public List<PersonDto> getPersonList() {
        return personList;
    }

    public void setPersonList(List<PersonDto> personList) {
        this.personList = personList;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    @Override
    public String toString() {
        return "InternalFetchResponseImpl [personList=" + personList + ", returnCode=" + returnCode + ", errorMessage="
                + errorMessage + "]";
    }

}
